package com.xiaohao.student_course.service;

import com.xiaohao.student_course.bean.Major;
import com.xiaohao.student_course.dao.MajorDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @author 小浩
 * @date 2018-12-16 17:44
 * @package com.xiaohao.student_course.service
 * @description
 */
@Service
public class MajorService {
    @Autowired
    private MajorDao majorDao;
    public List<String> getAllMajorName(){
        return majorDao.findAllMajorName();
    }
    public List<Major> getAllMajor(){
        return majorDao.findAll();
    }
}
